package org.example.model.Command;

import org.example.system.FarmMachine;

public class StopTaskCommand implements Command {
    private FarmMachine machine;

    public StopTaskCommand(FarmMachine machine) {
        this.machine = machine;
    }

    public void execute() {
        System.out.println(">>> 执行指令: " + machine.getId() + " 停止当前任务");
        machine.stopTask();
    }
}